Mastering spaCy by Duygu Altinok

Mastering spaCy by Duygu Altinok

Author:Duygu Altinok [Duygu Altinok]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2021-07-08T16:00:00+00:00


Extracting named entities with Matcher

As we have already seen, this is a flights dataset. Hence, we expect to see city/country names, airport names, and airline names:

Here are some examples:does american airlines fly from boston to san francisco

what flights go from dallas to tampa

show me the flights from montreal to chicago

what flights do you have from ontario

The users also provide the dates, times, days of the weeks they wish to fly on. These entities include numbers, month names, day of the week names as well as time adverbs such as next week, today, tomorrow, next month. Let's see some example entities:

list flights from atlanta to boston leaving between 6 pm and 10 pm on august eighth

i need a flight after 6 pm on wednesday from oakland to salt lake city

show me flights from minneapolis to seattle on july second

what flights leave after 7 pm from philadelphia to boston



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.